# -*- coding: utf-8 -*-
# 2022/4/15 13:26
# Author :jiangdeping
from selenium.webdriver.common.by import By
from page.base_page import BasePage

class ModefyPasswd(BasePage):
    def modefypasswd(self):
        self._driver.find_element(By.ID,"updpwdUsername").send_keys("testyy001")
        self._driver.find_element(By.ID, "updpwdPassword").send_keys("123456")
        self._driver.find_element(By.ID, "updpwdNewPassword").send_keys("222222")
        self._driver.find_element(By.ID, "updpwdConfirmPassword").send_keys("222222")
        self._driver.find_element(By.ID, "savepwd").click()
        self._driver.find_element(By.ID, "backlogin").click()
        from page.main import Main
        return Main(self._driver)
